//
//  ImportWalletBtnCell.m
//  ShandsMod
//
//  Created by zh s on 2023/3/21.
//  Copyright © 2023 zh_s. All rights reserved.
//

#import "ImportWalletBtnCell.h"


@implementation ImportWalletBtnCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        self.accessoryType = UITableViewCellAccessoryNone;
        self.backgroundColor = [UIColor clearColor];
        [self createView];
    }
    return self;
}

- (void)createView {
    UIButton *createBtn = [BaseViewFactory buttonWithFrame:CGRectZero font:FONT_NAME(FONT_Medium, 16) title:@"开始导入" titleColor:UIColor.whiteColor backColor:MAIN_ACTIVE_COLOR];
    [self.contentView addSubview:createBtn];
    [createBtn mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(32);
        make.top.mas_equalTo(5);
        make.size.mas_equalTo(CGSizeMake(SCREEN_WIDTH - 70, 40));
    }];
    GWRadius(createBtn, 20);
    _createBtn = createBtn;
    
    GWPrivacyView *privacyView = [[GWPrivacyView alloc] init];
    [self.contentView addSubview:privacyView];
    [privacyView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.mas_equalTo(self.contentView.mas_centerX).mas_offset(15);
        make.top.mas_equalTo(createBtn.mas_bottom).mas_offset(15);
        make.size.mas_equalTo(CGSizeMake(SCREEN_WIDTH - 70, 40));
    }];
//    privacyView.backgroundColor = RandomColor;
    WS(weakSelf);
    privacyView.privacyViewBlock = ^{
        weakSelf.ysxyBlock();
    };
    _privacyView = privacyView;

}


@end
